package work;

// 鱼类
public class Fish implements Animal {
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    protected String name;
    public Fish(){
        this.name = "Fish";
    }
    public Fish(String name) {
        this.name = name;
    }

    @Override
    public void makeSound() {
    }

    @Override
    public void displayDetails() {
    }

    public void move(){
        System.out.println("鱼儿正在游");
    }
}

